package com.invexer.baosteel.cashflow.mvc.controller.init {
import com.invexer.baosteel.cashflow.mvc.controller.finalize.CashflowFinalizeFrameworkCMD;
import com.invexer.common.constant.ContextCommandConst;


import com.invexer.common.controller.init.ContextStartupBootstrapBaseCMD;

import flash.events.Event;

import org.puremvc.as3.multicore.interfaces.INotification;

public class CashflowStartupBootstrapCMD extends ContextStartupBootstrapBaseCMD {

	override public function execute(notification:INotification):void{
		super.execute(notification);

	}

	override protected function initFramework():void{
		super.initFramework();

		facade.registerCommand(ContextCommandConst.ContextInitFrameworkCMD, CashflowInitFrameworkCMD);
		sendNotification( ContextCommandConst.ContextInitFrameworkCMD, {
			context:_context,
			appConfig:_appConfig
		});
		facade.removeCommand(ContextCommandConst.ContextInitFrameworkCMD);
	}

	override protected function contextOnRemoveFromStage(event:Event):void{
		super.contextOnRemoveFromStage(event);

		facade.registerCommand(ContextCommandConst.ContextFinalizeFrameworkCMD, CashflowFinalizeFrameworkCMD);
		sendNotification( ContextCommandConst.ContextFinalizeFrameworkCMD);
		facade.removeCommand(ContextCommandConst.ContextFinalizeFrameworkCMD);

		


	}
}
}
